package com.xyh.cloudorder.utils;

import java.io.PrintWriter;
import java.io.StringWriter;

public class GlobException {

	public static String getThrowableMessage(Throwable ex) {
		StringWriter sw = new StringWriter();
		PrintWriter pw = new PrintWriter(sw);
		ex.printStackTrace(pw);
		return sw.toString();
	}
}
